package com.test.myspringproject;

import org.springframework.boot.ConfigurableBootstrapContext;
import org.springframework.boot.SpringApplicationRunListener;

public class MySpringRunLsn implements SpringApplicationRunListener {
    public MySpringRunLsn() {
        System.out.println("MySpringRunLsn============");
    }

    public void init() {
        System.out.println("MySpringRunLsn.init");
    }

    public void run() {
        System.out.println("MySpringRunLsn.run");
    }

    @Override
    public void starting(ConfigurableBootstrapContext bootstrapContext) {
        System.out.println("MySpringRunLsn.starting===========");
    }
}
